#ifndef _PROTECT_CFG_H
#define _PROTECT_CFG_H

#define SOFT_OVR_CUR_THRESHOLD   496//软件过流保护ADC采样阈值=电流阈值*0.02*5*4096/3.3
#define SOFT_OVR_CUR_TIME_THRESHOLD  (20)//软件过流保护时间阈值(ms)

#define VBUS_OVR_THRESHOLD  (300)//超过30V报过压
#define VBUS_OVR_TIME_THRESHOLD  (100)//持续100ms
#define VBUS_OVR_WINDOW (20)//2V滞回窗

#define VBUS_LOW_THRESHOLD  (200)//低于20V报欠压
#define VBUS_LOW_TIME_THRESHOLD  (100)//持续100ms
#define VBUS_LOW_WINDOW (20)//2V滞回窗

#define TEMP_OVR_THRESHOLD (60)//60度过温
#define TEMP_OVR_TIME_THRESHOLD  (100)//持续100ms
#define TEMP_OVR_WINDOW (20)//5度滞回窗

#endif
